package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Menu;

import java.util.List;

public interface MenuService {



    //分页
    PageResult pageQuery(QueryPageBean queryPageBean);
    //新增
    void add(Menu menu);
    //删除
    void delete(Integer id);
    //编辑
    void edit(Menu menu);
    //根据Id查询
    Menu findById(Integer id);
    /**
     * 查询所欲菜单
     * @return
     */
    List<Menu> findAll();

    List<Menu> getMenuByUsername(String username);
}
